<div class="bg-light lter b-b wrapper-md">
    <h4 class="m-n font-thin">角色管理</h4>
    <button ui-sref="app.role" class="btn-back btn btn-dark btn-sm btn-rounded">
        返回
    </button>
</div>
<div class="wrapper-md ng-scope" ng-controller="editRoleCtrl">
    <div class="panel panel-default">
        <div class="panel-heading font-bold">
            编辑角色
        </div>
        <div class="panel-body">
            <form class="form-horizontal form-validation" method="post" ng-submit="updateRole()">
                <div class="form-group">
                    <label class="col-sm-2 control-label font-bold">名称</label>
                    <div class="col-sm-5">
                        <input ng-model="role.name" type="text" class="form-control" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label font-bold">描述</label>
                    <div class="col-sm-5">
                        <textarea class="form-control" rows="6" ng-model="role.description" placeholder="不超过100字"></textarea>
                    </div>
                </div>

                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-2">
                        <button type="submit" class="btn btn-success">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>